package com.jy.reservations.mapper;

import java.util.List;

import com.jy.books.domain.Books;
import com.jy.reservations.domain.Reservations;

/**
 * 图书预留Mapper接口
 * 
 * @author ruoyi
 * @date 2025-05-30
 */
public interface ReservationsMapper 
{
    /**
     * 查询图书预留
     * 
     * @param reservationId 图书预留主键
     * @return 图书预留
     */
    public Reservations selectReservationsByReservationId(Long reservationId);

    /**
     * 查询图书预留列表
     * 
     * @param reservations 图书预留
     * @return 图书预留集合
     */
    public List<Reservations> selectReservationsList(Reservations reservations);

    /**
     * 新增图书预留
     * 
     * @param reservations 图书预留
     * @return 结果
     */
    public int insertReservations(Reservations reservations);

    /**
     * 修改图书预留
     * 
     * @param reservations 图书预留
     * @return 结果
     */
    public int updateReservations(Reservations reservations);

    /**
     * 删除图书预留
     * 
     * @param reservationId 图书预留主键
     * @return 结果
     */
    public int deleteReservationsByReservationId(Long reservationId);

    /**
     * 批量删除图书预留
     * 
     * @param reservationIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteReservationsByReservationIds(Long[] reservationIds);

    /**
     * 批量删除图书信息
     * 
     * @param reservationIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBooksByBookIds(Long[] reservationIds);
    
    /**
     * 批量新增图书信息
     * 
     * @param booksList 图书信息列表
     * @return 结果
     */
    public int batchBooks(List<Books> booksList);
    

    /**
     * 通过图书预留主键删除图书信息信息
     * 
     * @param reservationId 图书预留ID
     * @return 结果
     */
    public int deleteBooksByBookId(Long reservationId);
}
